﻿using System.Diagnostics;
using System;

namespace SQLVis.Model
{
	/// <summary>
	/// A simple identifiable vertex.
	/// </summary>
	[DebuggerDisplay( "{ID}" )]
	public class PocVertex
	{
		public string ID
		{
			get;
			set;
		}

        public long Size
        {
            get;
            set;
        }

        public double QueryTime
        {
            get;
            set;
        }

        public double LockTime
        {
            get;
            set;
        }


        public long RowsExamined
        {
            get;
            set;
        }

        public long RowsSent
        {
            get;
            set;
        }

        public DateTime QueryTimeStamp
        {
            get;
            set;
        }

        public string User
        {
            get;
            set;
        }

        public string Host 
        {
            get;
            set;
        }

        public long QueryType
        {
            get;
            set;
        }

        public string SqlQuery
        {
            get;
             set;
        }
        
        public int ColorID
        {
            get;
            set;
        }

		public PocVertex( string id )
		{
			ID = id;
		}


        public PocVertex(string id, long size, int colorID)
        {
            ID = id;
            Size = size;
            ColorID = colorID;
        }

        public override string ToString()
        {
            return ID;
        }
	}
}